<?php
require('config.php');

        $user_id=$_REQUEST['user_id'];
		$sql="select * from `".$oto."_shops` where `userId`='{$user_id}' and shopFlag='1'";
		$result=$db->query($sql);
		while($row=$result->fetch_assoc()){
			$shops_info[]=$row;//将取得的所有数据赋值给person_info数组
		}
		if(!isset($shops_info))
		{
			$data[0]['status']=-2;
		}
		else
		{
			$data[0]['status']=$shops_info[0]['shopStatus'];
		}
		echo json_encode($data);
?>